<%@ page import="is2_domestik.Administrador" %>



<div class="fieldcontain ${hasErrors(bean: administradorInstance, field: 'username', 'error')} required">
  <label for="username">
    <g:message code="administrador.username.label" default="Username" />
    <span class="required-indicator">*</span>
  </label>
  <g:field type="email" name="username" required="" value="${administradorInstance?.username}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: administradorInstance, field: 'password', 'error')} required">
  <label for="password">
    <g:message code="administrador.password.label" default="Password" />
    <span class="required-indicator">*</span>
  </label>
  <g:textField name="password" required="" value="${administradorInstance?.password}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: administradorInstance, field: 'nombre', 'error')} required">
  <label for="nombre">
    <g:message code="administrador.nombre.label" default="Nombre" />
    <span class="required-indicator">*</span>
  </label>
  <g:textField name="nombre" maxlength="20" required="" value="${administradorInstance?.nombre}"/>
</div>

<div class="control-group">
  <div class="fieldcontain ${hasErrors(bean: administradorInstance, field: 'apellido', 'error')} required">
    <label class="control-label" for="apellido">
      <g:message code="administrador.apellido.label" default="Apellido" />
      <span class="required-indicator">*</span>
    </label>
    <div class="controls">
      <g:textField name="apellido" maxlength="20" required="" value="${administradorInstance?.apellido}"/>
    </div>
  </div>
</div>

<div class="fieldcontain ${hasErrors(bean: administradorInstance, field: 'telefono', 'error')} required">
  <label for="telefono">
    <g:message code="administrador.telefono.label" default="Telefono" />
    <span class="required-indicator">*</span>
  </label>
  <g:textField name="telefono" maxlength="7" pattern="${administradorInstance.constraints.telefono.matches}" required="" value="${administradorInstance?.telefono}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: administradorInstance, field: 'celular', 'error')} required">
  <label for="celular">
    <g:message code="administrador.celular.label" default="Celular" />
    <span class="required-indicator">*</span>
  </label>
  <g:textField name="celular" maxlength="10" pattern="${administradorInstance.constraints.celular.matches}" required="" value="${administradorInstance?.celular}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: administradorInstance, field: 'fechaDeNacimiento', 'error')} required">
  <label for="fechaDeNacimiento">
    <g:message code="administrador.fechaDeNacimiento.label" default="Fecha De Nacimiento" />
    <span class="required-indicator">*</span>
  </label>
  <g:datePicker name="fechaDeNacimiento" precision="day"  value="${administradorInstance?.fechaDeNacimiento}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: administradorInstance, field: 'ciudad', 'error')} required">
  <label for="ciudad">
    <g:message code="administrador.ciudad.label" default="Ciudad" />
    <span class="required-indicator">*</span>
  </label>
  <g:select name="ciudad" from="${administradorInstance.constraints.ciudad.inList}" required="" value="${administradorInstance?.ciudad}" valueMessagePrefix="administrador.ciudad"/>
</div>

<div class="fieldcontain ${hasErrors(bean: administradorInstance, field: 'accountExpired', 'error')} ">
  <label for="accountExpired">
    <g:message code="administrador.accountExpired.label" default="Account Expired" />

  </label>
  <g:checkBox name="accountExpired" value="${administradorInstance?.accountExpired}" />
</div>

<div class="fieldcontain ${hasErrors(bean: administradorInstance, field: 'accountLocked', 'error')} ">
  <label for="accountLocked">
    <g:message code="administrador.accountLocked.label" default="Account Locked" />

  </label>
  <g:checkBox name="accountLocked" value="${administradorInstance?.accountLocked}" />
</div>

<div class="fieldcontain ${hasErrors(bean: administradorInstance, field: 'enabled', 'error')} ">
  <label for="enabled">
    <g:message code="administrador.enabled.label" default="Enabled" />

  </label>
  <g:checkBox name="enabled" value="${administradorInstance?.enabled}" />
</div>

<div class="fieldcontain ${hasErrors(bean: administradorInstance, field: 'passwordExpired', 'error')} ">
  <label for="passwordExpired">
    <g:message code="administrador.passwordExpired.label" default="Password Expired" />

  </label>
  <g:checkBox name="passwordExpired" value="${administradorInstance?.passwordExpired}" />
</div>

